package com.xtaifghy.wugui;

import com.xtaifghy.wugui.util.Util;
import org.junit.Test;

import java.util.ArrayList;

public class Debug {
    public static void printVector(ArrayList<Integer> v){
        for (int i = 0; i < v.size(); i++) {
            System.out.print(v.get(i)+",");
        }
        System.out.println();
    }

    public static void printArr(int[] arr){
        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i]+",");
        }
        System.out.println();
    }
    @Test
    public void test() {

    }

    @Test
    public void test1() {
        GameStateTest gs = new GameStateTest();
        int sum = 0;
        for (int i = 0; i < 100000; i++) {
            gs.randomGoalState();
            sum=sum+gs.getPaths();
        }
        System.out.println(sum/100000);
    }

    @Test
    public void test2() {
        GameStateInterface gs = new GameState3();
        for (int i = 0; i < 1000000; i++) {
            gs.randomGoalState();
            gs.getPaths();
        }
    }
    @Test
    public  void test11() {
        boolean[] bArr = Util.intToBArr(3,4);
        Util.printBArr(bArr);
    }

}
